<?php
defined('BASEPATH') or exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, user-scalable=no,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
	<title>Slidepin账户激活-slidepin.com</title>
	<link rel="stylesheet" href="/static/css/base.css">
	<link rel="stylesheet" href="/static/css/common.css">
	<link rel="stylesheet" href="//at.alicdn.com/t/font_768387_6halbm1kqg6.css">
	<style>
		.layout-container{
			max-width:1200px;
			height: 350px;
			margin:100px auto;
		}

		.layout-result-box{
			padding:40px;
			border:1px solid #e1e4e8;
			background-color: #fff;
			border-radius: 2px;
			color:#24292e;
		}

		.layout-auth-box{
			border-bottom:1px solid #eaecef;
			margin-bottom:20px;
			padding-bottom:10px;
		}

		.auth-title{
			color:#000;
			height:24px;
			padding:15px 0;
		}

		.auth-description{
			font-size:16px;
			line-height:30px;
			margin-bottom:10px;
		}

		.link{
			color:#108EE9;
		}

		.divider{
			border:none;
			height:1px;
			line-height:1px;
			font-size:0;
			background-color:#eaecef;
			color:#efefef;
			margin:20px 0;
		}
		.action-box{
			margin:10px;
			text-align: center;
		}
		.activate{
			display: inline-block;
			line-height: 34px;
			height:34px;
			font-size: 14px;
			padding: 0 20px;
			color:#fff;
			background-color: #f60;
			text-decoration: none;
			margin: 0 auto;
		}

		.layout-auth-tips h4{
			font-size:14px;
			margin-bottom:6px;
		}

		.layout-auth-tips .tip{
			font-size:12px;
			line-height: 22px;
			margin-bottom: 8px;
		}

		.click-link{
			cursor: pointer;
		}

		.red{
			color:#f00;
		}
	</style>
</head>
<body>
	<?php $this->load->view('common/header');?>
	<div id="container" class="layout-container">
	<?php if ($code===1): ?>
		<section class="layout-result-box">
			<div class="layout-auth-box">
				<h1 class="auth-title">账户注册成功,还差一步即可完成激活</h1>
				<p class="auth-description">我们已经向您的注册邮箱<span class="link">user@wtoip.com</span>发送了一封激活邮件，请点击邮件中的链接激活账号完成注册。邮箱激活链接有效期为24小时，请您尽快完成注册！</p>
				<div class="action-box">
					<a href="http://mail.wotop.com/" class="activate">立即进入邮箱</a>
				</div>
			</div>
			<div class="layout-auth-tips">
				<h4>没有收到确认邮件，怎么办？</h4>
				<p class="tip"><span class="red">* </span>看看是否在邮箱的回收站中、垃圾邮件中</p>
				<p class="tip"><span class="red">* </span>重新发送，<span class="link click-link">点此重发</span>一封</p>
			</div>
		</section>
	<?php elseif ($code===-2): ?>
		<section class="layout-result-box">
			<div class="layout-auth-box">
				<h1 class="auth-title">用户名或邮箱已被注册</h1>
				<p>去<a href="/login">登录</a>或者更换邮箱<a href="/register">重新注册</a></p>
			</div>
		</section>
	<?php elseif ($code===-3): ?>
		<section class="layout-result-box">
			<div class="layout-auth-box">
				<h1 class="auth-title">非法访问</h1>
			</div>
		</section>
	<?php elseif ($code===-4): ?>
		<section class="layout-result-box">
			<div class="layout-auth-box">
				<h1 class="auth-title">参数错误</h1>
			</div>
		</section>
	<?php else: ?>
		<section class="layout-result-box">
			<div class="layout-auth-box">
				<h1 class="auth-title">非法访问</h1>
			</div>
		</section>
	<?php endif; ?>
	</div>
	<?php $this->load->view('common/footer');?>
</body>
</html>
